package day05;

public class ForDemo {
    public static void main(String[] args) {
        int sum=0;
        for(int i=1;i<=100;i++){
            sum+=i;
        }
        System.out.println("总数"+sum);
        /*        num = 0;
        while (a<=100){
            num+=a;
            a++;
        }
        System.out.println("总数"+num);

         */




    }
}
